import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
//引入router对象
import router from "@/router"
//引入NavType组件
import NavType from "@comp/NavType";
import { request } from "@/utils/http";

//全局注册NavType组件
Vue.component("NavType", NavType);
new Vue({
  render: h => h(App),
  //把router路由对象注册到实例上，那么所有的组件实例上都有有一个$router和$route对象
  router
}).$mount('#app')

async function fn(){
  const re=await request.get("/api/product/getBaseCategoryList")
  console.log(re);
}
fn()
